import sys

def loadPly(filename):
  f = open(filename, 'r')

  while not ('end_header' in f.readline()):
    pass

  points = []
  for line in f:
    elements = [float(x) for x in line.split()[:3]]
    points.append(elements)
    
  return points

if __name__ == "__main__":
  print loadPly(sys.argv[1])
